#define _CRT_SECURE_NO_WARNINGS 1

class Solution {
public:
    vector<int> evenOddBit(int n) {
        vector<int> v1;
        v1.resize(2);
        for (int i = 0; i < 32; ++i)
        {
            if (i % 2 == 0)
                v1[0] += (n >> i) & 1;
            else
                v1[1] += (n >> i) & 1;
        }

        return v1;
    }
};